const {ThumbsUpMod}=require('../mod/ThumbsUpMod.js');

module.exports.createThumbsUp =async function(Info){
  let data = await ThumbsUpMod.create(Info);
}

module.exports.selectThumbsUp=async function(Info){
  let data = await ThumbsUpMod.find({$and:[
      {userId:Info.userId},{contentId:Info.contentId}
  ]})
  return data;
}

module.exports.deleteThumbsUp=async function(Info){
  let data = await ThumbsUpMod.remove({$and:[
    {userId:Info.userId},{contentId:Info.contentId}
  ]});
}

